<ion-header>
    <ion-navbar no-border-bottom>
        <ion-title>详情</ion-title>
    </ion-navbar>
</ion-header>
<ion-content class='info-detail'>
    <ion-grid>
        <ion-row>
            <ion-col text-center>
                <h2>{{info.bostitle}}</h2></ion-col>
        </ion-row>
        <ion-row *ngIf="info.oaType == 'dispatch'">
            <ion-col text-center *ngIf="info.orgname">发布部门：综合管理部</ion-col>
            <ion-col text-center *ngIf="info.qfrq">发布时间：{{info.qfrq}}</ion-col>
            <ion-col text-center *ngIf="!info.qfrq">发布时间：{{info.bosdate}}</ion-col>
        </ion-row>
        <ion-row *ngIf="info.oaType != 'dispatch'">
            <ion-col text-center *ngIf="info.orgname">发布部门：{{info.orgname}}</ion-col>
            <ion-col text-center *ngIf="info.bosdate">发布时间：{{info.bosdate}}</ion-col>
        </ion-row>
    </ion-grid>
    <ion-list class='gfoa-list'>
        <div *ngIf="info.InfoImg">
            <ion-item-divider color="light">图片</ion-item-divider>
            <button class="attach-item" ion-item *ngFor="let attach of info.InfoImg.split(';');let i=index;" (click)="openFile(attach.split(',')[0],attach.split(',')[1])">
                {{i+1+"："+attach.split(',')[1]}}
            </button>
        </div>
        <div *ngIf="info.InfoBwwf">
            <ion-item-divider color="light">附件</ion-item-divider>
            <button class="attach-item" ion-item *ngFor="let attach of info.InfoBwwf.split(';');let i=index;" (click)="openFile(attach.split(',')[0],attach.split(',')[1])">
                {{i+1+"："+attach.split(',')[1]}}
            </button>
        </div>
        <ion-item-divider color="light">正文</ion-item-divider>
    </ion-list>
    <div>
        <pdf-viewer [src]="pdfLink" [show-all]="true" [original-size]="false" [zoom]="zoom" (after-load-complete)="pdfLoadCallBackFn($event)" (error)="onPdfLoadError($event)" (on-progress)="onLoadPdfProgress($event)"></pdf-viewer>
    </div>
    <div class="mfield-content html-content" [innerHTML]='mfieldContent'>
    </div>
    <div class="info-detail-operate-buttons" *ngIf="pdfLink">
        <div (click)="zoomPdf('add')">
            <ion-icon name="add-circle"></ion-icon>
        </div>
        <div (click)="zoomPdf('sub')">
            <ion-icon name="remove-circle"></ion-icon>
        </div>
    </div>
    <!-- <iframe *ngIf="contentLink" frameborder="0" scrolling="auto" (load)="onLoadIframe()" [src]="contentLink"></iframe> -->
    <!-- <img *ngIf="pdfLink" width="100%" [src]="pdfLink"> -->
</ion-content>
